package com.szl.sbssh.service;

import com.szl.sbssh.pageModel.base.PageFilter;
import com.szl.sbssh.pageModel.base.SessionInfo;
import com.szl.sbssh.pageModel.sys.User;

import java.util.List;

/**
 * Author: songzhonglin
 * Date: 2018/4/17
 * Time: 9:49
 * Description:
 **/
public interface UserService {

    public List<User> dataGrid(User user, PageFilter ph);

    public Long count(User user, PageFilter ph);

    public void add(User user);

    public void delete(Long id);

    public void edit(User user);

    public User get(Long id);

    public User login(User user);

    public List<String> listResource(Long id);

    public boolean editUserPwd(SessionInfo sessionInfo, String oldPwd, String pwd);

    public User getByLoginName(User user);

    public List<User> getUserListByUserType();

    public String[] getUserListNameByUserType();

    public List<User> exportExcelBySelect(String ids);
}
